﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplicationBindersSample.Models.CreateEditPersonModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create / Edit a Person
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Create / Edit a Person</h2>
    <p class="note">
        Age is optional, but if specified it must be non-negative.
    </p>
    <div>
        <% using (Html.BeginForm()) { %>
            <div>
                <%: Html.EditorForModel() %>
            </div>
            <div>
                <input type="submit" />
            </div>
        <% } %>
    </div>
    <p>
        Or you can go <%: Html.ActionLink("back to the list", "Index") %>.
    </p>
</asp:Content>
